
from django.contrib import admin
from django.urls import path
from app01 import views
urlpatterns = [
    path('admin/', admin.site.urls),
    # 注册接口
    path('register/', views.MyReg.as_view()),
    # 登录接口
    path('login/', views.MyLogin.as_view()),
    # 查看所有车型
    path('visit/', views.MyFunction.as_view()),
    # 查看单个车型
    path('visit/<int:pk>/', views.MyFunction.as_view()),
    # 新增,删除车厂
    path('post_delete_factory/', views.MyAdminCarFactory.as_view()),
    # 新增,删除车型
    path('post_delete_carmodel/', views.MyAdminCarModel.as_view()),
    # 新增,删除经销商
    path('post_delete_distributor/', views.MyAdminDistributor.as_view())

]

